<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>PNR录单</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
	<meta name="viewport" content="initial-scale=1.0,user-scalable=no,width=device-width,height=device-height" />
	
	<!-- 通用文件引入 -->
	<#include "../../common/base.html"/>    
	<script type="text/javascript" charset="utf-8" src="${webRoot!}/js/bus/pnr/pnr-input.js"></script>
	<script type="text/javascript" src="${webRoot!}/skins/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript">
		$(function(){
		    PnrInput.path = '${webRoot!}';
		});
	</script>

</head>

<body class="gray-bg">
    <div class="col-sm-12" id="update-shop-dialog">
         <div class="ibox float-e-margins">
             <div class="ibox-title">
                 <h5>PNR解析结果</h5>
             </div>
             <div class="ibox-content">
                 <form method="get" class="form-horizontal">
                     <div class="form-group">
                         <div class="col-sm-12">
                         	<table class="shop-price-table" id="pnr-order-table" border="1" bordercolor="#E5E6E7">
                         		<tr>
                         			<td style="width: 2%;">序</td>
                         			<td style="width: 5%;">PNR</td>
                         			<td style="width: 8%;">乘机人</td>
                         			<td style="width: 8%;">行程</td>
                         			<td style="width: 9%;">票号</td>
                         			<td style="width: 8%;">客户<a href="javascript:PnrInput.copyFirstSelectContent('5')" class="btn btn-default btn-xs" title="复制到其他行">复制</a></td>
                         			<td style="width: 8%;">票证来源<a href="javascript:PnrInput.copyFirstSelectContent('6')" class="btn btn-default btn-xs" title="复制到其他行">复制</a></td>
                         			<td style="width: 8%;">供应商<a href="javascript:PnrInput.copyFirstContent('7')" class="btn btn-default btn-xs" title="复制到其他行">复制</a></td>
                         			<td style="width: 5%;">票面价<a href="javascript:PnrInput.copyFirstContent('8')" class="btn btn-default btn-xs" title="复制到其他行">复制</a></td>
                         			<td style="width: 5%;">税金<a href="javascript:PnrInput.copyFirstContent('9')" class="btn btn-default btn-xs" title="复制到其他行">复制</a></td>
                         			<td style="width: 5%;">实收价<a href="javascript:PnrInput.copyFirstContent('10')" class="btn btn-default btn-xs" title="复制到其他行">复制</a></td>
                         			<td style="width: 5%;">结算价<a href="javascript:PnrInput.copyFirstContent('11')" class="btn btn-default btn-xs" title="复制到其他行">复制</a></td>
                         			<td style="width: 5%;">后返<a href="javascript:PnrInput.copyFirstContent('12')" class="btn btn-default btn-xs" title="复制到其他行">复制</a></td>
                         			<td style="width: 5%;">利润<a href="javascript:PnrInput.copyFirstContent('13')" class="btn btn-default btn-xs" title="复制到其他行">复制</a></td>
                         			<td style="width: 7%;">出票日期<a href="javascript:PnrInput.copyFirstContent('14')" class="btn btn-default btn-xs" title="复制到其他行">复制</a></td>
                         			<td style="width: 10%;">备注<a href="javascript:PnrInput.copyFirstContent('15')" class="btn btn-default btn-xs" title="复制到其他行">复制</a></td>
                         		</tr>
                         		<#list pnrs as pnr>
                         		<tr>
                         			<td >
                         				${pnr_index+1}
                         			</td>
	                         		<td >
	                         			<input type="text" class="form-control" placeholder="PNR" maxlength="30" value="${pnr.oPnr!}" />
	                         		</td>
	                         		<td >
	                         			<input type="text" class="form-control" placeholder="乘机人" maxlength="50" value="${pnr.oName!}" />
	                         		</td>
	                         		<td >
	                         			<input type="text" class="form-control" placeholder="行程" maxlength="50" value="${pnr.oRoute!}"/>
	                         		</td>
	                         		<td >
	                         			<input type="text" class="form-control" placeholder="票号" maxlength="50" value="${pnr.oTicketNo!}"/>
	                         		</td>
	                         		<td >
	                         			<select class="form-control" placeholder="客户" id="col5_${pnr_index+1}">
	                         				<option value="">请选择</option>
	                         				<#list customers as customer>
	                         					<option value="${customer.cId!}">${customer.cName!}</option>
	                         				</#list>
	                         			</select>
	                         		</td>
	                         		<td >
	                         			<select class="form-control" placeholder="票证来源">
	                         				<option value="BSP">BSP</option>
	                         				<option value="外购">外购</option>
	                         				<option value="航司官网">航司官网</option>
	                         			</select>
	                         		</td>
	                         		<td>	
	                         			<input type="text" class="form-control" placeholder="供应商" maxlength="100" value="${pnr.oSupplier!}"/>
	                         		</td>
	                         		<td id="tabletr">
	                         			<input type="text" class="form-control" id="col8_${pnr_index+1}" placeholder="票面价" maxlength="10" value="0" onkeyup="PnrInput.calcSettlementPrice(${pnr_index+1})"/>
	                         		</td>
	                         		<td>
	                         			<input type="text" class="form-control" id="col9_${pnr_index+1}" placeholder="税金" maxlength="10" value="0" onkeyup="PnrInput.calcSettlementPrice(${pnr_index+1})"/>
	                         		</td>
	                         		<td>
	                         			<input type="text" class="form-control" id="col10_${pnr_index+1}" placeholder="实收价" maxlength="10" value="0" onkeyup="PnrInput.clacProfit(${pnr_index+1})"/>
	                         		</td>
	                         		<td>
	                         			<input type="text" class="form-control" id="col11_${pnr_index+1}" placeholder="结算价" maxlength="10" value="0" onkeyup="PnrInput.clacProfit(${pnr_index+1})"/>
	                         		</td>
	                         		<td>
	                         			<input type="text" class="form-control" id="col12_${pnr_index+1}" placeholder="后返" maxlength="10" value="0" onkeyup="PnrInput.calcSettlementPrice(${pnr_index+1})"/>
	                         		</td>
	                         		<td>
	                         			<input type="text" class="form-control" id="col13_${pnr_index+1}" placeholder="利润" maxlength="10" value="0"/>
	                         		</td>
	                         		<td>
	                         			<input type="text" class="form-control" id="col14_${pnr_index+1}" placeholder="出票日期" maxlength="10" value="" onFocus="WdatePicker()"/>
	                         		</td>
	                         		<td>
	                         			<input type="text" class="form-control" id="col15_${pnr_index+1}" placeholder="备注" maxlength="10" value=""/>
	                         		</td>
	                         	</tr>	
	                         	</#list>
                         	</table>	
                         </div>
                         <div class="col-sm-12" style="margin-top:10px;">
                         	以上信息由系统自动解析，请核对后点击提交订单按钮生成订单。
                         </div>
                     </div>
                     
                     <div class="hr-line-dashed"></div>
                     <div class="form-group">
                         <div class="col-sm-12 text-center">
                             <button class="btn btn-primary" type="button" onclick="PnrInput.orderSubmit()">提交订单</button>&nbsp;&nbsp;&nbsp;
                             <button class="btn btn-blue" type="button" onclick="window.history.back(-1)">返回上一步</button>
                         </div>
                     </div>
                 </form>
             </div>
         </div>
     </div>
</body>
